import { Component, OnInit,Output,EventEmitter,Input } from '@angular/core';
import {downIn} from "../../../../../animate";

@Component({
  selector: 'app-qr-code',
  templateUrl: './qr-code.component.html',
  styleUrls: ['./qr-code.component.css'],
  animations:[downIn]
})
export class QrCodeComponent implements OnInit {
  @Output() onCloseCode = new EventEmitter<boolean>();
  @Input () classInfo:any;
  url:string;
  constructor(

  ) { }

  ngOnInit() {
    this.url = 'http://mclientroster.lessonplan.cn/home/joinRoll;search='+this.classInfo.IDCode;
  }
  onClose () {
    this.onCloseCode.emit(false);
  }

}
